package com.lzy.managersystem.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lzy.managersystem.mapper.DictMapper;
import com.lzy.managersystem.pojo.Dict;
import com.lzy.managersystem.service.DictService;
import com.lzy.managersystem.tools.Constans;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author qq619
 * @description 针对表【sys_dict】的数据库操作Service实现
 * @createDate 2022-07-12 20:01:55
 */
@Service
public class DictServiceImpl extends ServiceImpl<DictMapper, Dict>
        implements DictService {

    @Resource
    private DictMapper dictMapper;

    @Override
    public List<Dict> selectall() {
        QueryWrapper<Dict> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("type", Constans.TYPE_ICON);
        return dictMapper.selectList(queryWrapper);
    }
}




